package com.xiaoyu.izf.service;

import com.xiaoyu.izf.model.UserAddress;
import com.xiaoyu.izf.repository.UserAddressDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserAddressService {

    @Autowired
    private UserAddressDao userAddressDao;

    public UserAddress findOne(int uid){
        return userAddressDao.findAllByUid(uid).get(0);
    }
}
